package cn.rkylin.oms.system.shop.dao;

import cn.rkylin.oms.system.shop.domain.ShopStor;
import cn.rkylin.oms.system.shop.vo.ShopStorVO;

/**
 * 店铺的仓库
 */
public interface IShopStorDAO {
    
    /**
     * 根据主键删除
     * 
     * @param shopStorId
     * @return
     */
    int deleteByPrimaryKey(String shopStorId) throws Exception;

    /**
     * 插入店铺仓库
     * 
     * @param record
     * @return
     */
    int insert(ShopStor record) throws Exception;

    /**
     * 根据主键获取1个店铺仓库
     * 
     * @param shopStorId
     * @return
     */
    ShopStor selectByPrimaryKey(String shopStorId) throws Exception;

    /**
     * 根据主键，选择性的进行更新
     * 
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(ShopStor record) throws Exception;

    /**
     * updateCleanDefaultReturnStorByShopStor:清除店铺的退货仓库. <br/>
     *
     * @author zhanghao
     * @param param
     */
    int updateCleanDefaultReturnStorByShopStor(ShopStor param) throws Exception;
    
    ShopStor selectShopStorInfoByShopStor(ShopStorVO shopStorVO) throws Exception;
    
}